﻿using System;

public class BasePage : System.Web.UI.Page
{

    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);
        if (Session["MyTheme"] == null)
        {
            Session.Add("MyTheme", "Default");
            Page.Theme = (string)Session["MyTheme"];
        }
        else
        {
            Page.Theme = (string)Session["MyTheme"];
        }
    }
}